// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IAppSettings.cs" company="AzureContrib (Open source library http://azurecontrib.codeplex.com)">
//   Microsoft Public License (Ms-PL)
// </copyright>
// <summary>
//   Exception for errors when handling Windows Azure Cloud Drives.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace AzureContrib.WindowsAzure.Diagnostics
{
	/// <summary>
	/// A way to reach application settings without having to choose Azure/Web/Desktop
	/// </summary>
	public interface IAppSettings
	{
		/// <summary>
		/// The application settings of an application.
		/// </summary>
		/// <param name="configurationSettingName">Name of the configuration setting to fetch.</param>
		/// <param name="settingValue">The value of the configuration setting.</param>
		/// <returns>True if the value is present in configuration.</returns>
		bool TryGetConfigurationSettingValue(string configurationSettingName, out string settingValue);
	}
}